package com.xxwy.study.server.code;

import io.netty.handler.codec.LengthFieldBasedFrameDecoder;

/**
 * 点单协议第一步，解决半包粘包.
 *
 * @author xxwy
 * @date 2021/11/23 0023
 */
public class OrderFrameDecoder extends LengthFieldBasedFrameDecoder {

    /**
     * length字段长度2，后面传入的byte去掉长度2信息
     */
    public OrderFrameDecoder() {
        super(Integer.MAX_VALUE, 0, 2, 0,2);
    }
}
